Autotools build failure #kirkstone #autotools
Hello all,
I'm moving my build from Dunfell to Kirkstone & an issue with gstreamer1.0-plugins-hantro ( https://github.com/linux4sam/meta-atmel/tree/kirkstone/recipes-multimedia/gstreamer1.0-plugins ) has cropped up. This recipe inherits autotools-brokensep.
During the build I initially got:
autoreconf: running: aclocal --system-acdir=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot/usr/share/aclocal/ --automake-acdir=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/git/m4/ -I /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/share/aclocal/ --force -I m4 -I common/m4
NOTE: elfutils-0.186-r0 do_package_write_ipk: libc6-dbg rprovides glibc-dbg, not replacing the latter
NOTE: elfutils-0.186-r0 do_package_write_ipk: libgcc-s-dbg rprovides libgcc-dbg, not replacing the latter
NOTE: elfutils-0.186-r0 do_package_write_ipk: libz-dbg rprovides zlib-dbg, not replacing the latter
*aclocal: error: couldn't open directory 'common/m4': No such file or directory*
autoreconf: error: aclocal failed with exit status: 1
ERROR: gstreamer1.0-plugins-hantro-1.8-r0 do_configure: autoreconf execution failed.
WARNING: exit code 1 from a shell command.
I added the directory common/m4 & on the next run I get:
autoreconf: running: /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/bin/autoconf --include=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/git/m4/ --include=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/share/aclocal/ --force configure.ac:16: error: possibly undefined macro: AS_VERSION
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:19: error: possibly undefined macro: AS_NANO
configure.ac:46: error: possibly undefined macro: AS_LIBTOOL
configure.ac:55: error: possibly undefined macro: AS_AUTOTOOLS_ALTERNATE
configure.ac:127: error: possibly undefined macro: AS_PATH_PYTHON
configure.ac:154: error: possibly undefined macro: PKG_CHECK_MODULES
autoreconf: error: /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/bin/autoconf failed with exit status: 1
ERROR: gstreamer1.0-plugins-hantro-1.8-r0 do_configure: autoreconf execution failed.
WARNING: exit code 1 from a shell command.
+ die autoreconf execution failed.
+ bbfatal_log autoreconf execution failed.
+ [ -p /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/temp/fifo.20217 ]
+ printf %b\0 bbfatal_log autoreconf execution failed.
+ exit 1
+ bb_sh_exit_handler
+ ret=1
+ [ 1 != 0 ]
+ echo WARNING: exit code 1 from a shell command.
+ exit 1
ERROR: gstreamer1.0-plugins-hantro-1.8-r0 do_configure: ExecutionError('/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/temp/run.do_configure.20217', 1, None, None)
ERROR: Logfile of failure stored in: /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/temp/log.do_configure.20217
ERROR: Task (/media/owen/yocto/meritechYocto/poky/../meta-atmel/recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.8.bb:do_configure) failed with exit code '1'
I suspect there is something not properly configured in autotools & some change has occured from Dunfell -> Kirkstone. Can anyone provide any pointers please?
My build configuration is below.
Regards,
Owen
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "sama5d4-trinity-sd"
DISTRO = "poky-atmel"
DISTRO_VERSION = "4.0.9"
TUNE_FEATURES = "arm vfp cortexa5 neon vfpv4 thumb callconvention-hard" TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "kirkstone:4cc0e9438b450b43749730e128b6b9adb30f9663" meta-oe
meta-networking
meta-webserver
meta-python
meta-initramfs = "kirkstone:571e36e20e9d1f27af0eb4545291beeb64f280e2" meta-atmel = "kirkstone:cf920cc40b4ff61dfc33410605bc8f94ab9b88dd" meta-multimedia = "kirkstone:571e36e20e9d1f27af0eb4545291beeb64f280e2" meta-arm
meta-arm-toolchain = "kirkstone:96aad3b29aa7a5ee4df5cf617a6336e5218fa9bd" meta-swupdate = "master:4b99b93b4225723cf9ff3a29abb4bd7811ce071c"
Quoted 1 line
I added the directory common/m4
Did you clone common git repo or just created empty directory?
Most gstreamer recipes were fetching common submodule during do_configure which doesn't work with new kirkstone which prevents network access from tasks which shouldn't access it, so you need to add common repo to SRC_URI and SRCREV_common + SRCREV_FORMAT.
Regards,
Quoted 122 lines · Electronic Consult
Hello all,
I'm moving my build from Dunfell to Kirkstone & an issue with gstreamer1.0-plugins-hantro
<https://github.com/linux4sam/meta-atmel/tree/kirkstone/recipes-multimedia/gstreamer1.0-plugins>
has cropped up. This recipe inherits autotools-brokensep.During the build I initially got:
autoreconf: running: aclocal --system-acdir=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot/usr/share/aclocal/ --automake-acdir=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I
/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/git/m4/
-I /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/share/aclocal/ --force -I m4 -I common/m4
NOTE: elfutils-0.186-r0do_package_write_ipk: libc6-dbg rprovides
glibc-dbg, not replacing the latter
NOTE: elfutils-0.186-r0do_package_write_ipk: libgcc-s-dbg rprovides
libgcc-dbg, not replacing the latter
NOTE: elfutils-0.186-r0do_package_write_ipk: libz-dbg rprovides zlib-dbg,
not replacing the latter
*aclocal: error: couldn't open directory 'common/m4': No such file or
directory*
autoreconf: error: aclocal failed with exit status: 1
ERROR: gstreamer1.0-plugins-hantro-1.8-r0do_configure: autoreconf
execution failed.
WARNING: exit code 1 from a shell command.I added the directory common/m4 & on the next run I get:
autoreconf: running:
/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/bin/autoconf --include=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/git/m4/ --include=/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/share/aclocal/ --force
configure.ac:16: error: possibly undefined macro:AS_VERSION
If this token and others are legitimate, please usem4_pattern_allow.
See the Autoconf documentation.
configure.ac:19: error: possibly undefined macro:AS_NANO
configure.ac:46: error: possibly undefined macro:AS_LIBTOOL
configure.ac:55: error: possibly undefined macro:AS_AUTOTOOLS_ALTERNATE
configure.ac:127: error: possibly undefined macro:AS_PATH_PYTHON
configure.ac:154: error: possibly undefined macro:PKG_CHECK_MODULES
autoreconf: error:
/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/recipe-sysroot-native/usr/bin/autoconf failed with exit status: 1
ERROR: gstreamer1.0-plugins-hantro-1.8-r0do_configure: autoreconf
execution failed.
WARNING: exit code 1 from a shell command.
+ die autoreconf execution failed.
+bbfatal_logautoreconf execution failed.
+ [ -p /media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/temp/fifo.20217
]
+ printf %b\0bbfatal_logautoreconf execution failed.
+ exit 1
+bb_sh_exit_handler
+ ret=1
+ [ 1 != 0 ]
+ echo WARNING: exit code 1 from a shell command.
+ exit 1
ERROR: gstreamer1.0-plugins-hantro-1.8-r0do_configure:
ExecutionError('/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/temp/run.do_configure.20217', 1, None, None)
ERROR: Logfile of failure stored in:
/media/owen/yocto/meritechYocto/poky/build-microchip/tmp/work/cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-hantro/1.8-r0/temp/log.do_configure.20217
ERROR: Task
(/media/owen/yocto/meritechYocto/poky/../meta-atmel/recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.8.bb:do_configure)
failed with exit code '1'I suspect there is something not properly configured in autotools & some change has occured from Dunfell -> Kirkstone. Can anyone provide any pointers please?
My build configuration is below.
Regards,
Owen
Build Configuration:
BB_VERSION = "2.0.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "sama5d4-trinity-sd" DISTRO = "poky-atmel" DISTRO_VERSION = "4.0.9" TUNE_FEATURES = "arm vfp cortexa5 neon vfpv4 thumbcallconvention-hard"
TARGET_FPU= "hard"
meta
meta-poky
meta-yocto-bsp = "kirkstone:4cc0e9438b450b43749730e128b6b9adb30f9663"
meta-oe
meta-networking
meta-webserver
meta-pythonmeta-initramfs = "kirkstone:571e36e20e9d1f27af0eb4545291beeb64f280e2" meta-atmel = "kirkstone:cf920cc40b4ff61dfc33410605bc8f94ab9b88dd" meta-multimedia = "kirkstone:571e36e20e9d1f27af0eb4545291beeb64f280e2"meta-arm
meta-arm-toolchain = "kirkstone:96aad3b29aa7a5ee4df5cf617a6336e5218fa9bd"
meta-swupdate = "master:4b99b93b4225723cf9ff3a29abb4bd7811ce071c"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#59817):
https://lists.yoctoproject.org/g/yocto/message/59817
Mute This Topic: https://lists.yoctoproject.org/mt/98560560/3617156
Mute #kirkstone:
https://lists.yoctoproject.org/g/yocto/mutehashtag/kirkstone
Mute #autotools:
https://lists.yoctoproject.org/g/yocto/mutehashtag/autotools
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Martin,
Many thanks for the reply.
I just added an empty directory in the build directory. I see other recipes adding ( such as this ( https://github.com/Xilinx/meta-petalinux/blob/master/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%25.bbappend ) ) using the SRC_URI, SRCREV_common & SRCREV_FORMAT. I'll give it a go.
Regards,
Owen
Martin,
Thanks for the pointer, I manged to get the recipe working with your help.
For anyone else looking at this the issue was resolved with this ( https://github.com/linux4sam/meta-atmel/pull/247/commits/353dcfe62bbc4b6a10eb5926b7c87cc2f4774a1b ).
Hope it helps someone else!
Owen
Quoted 9 lines · Electronic Consult via lists.yoctoproject.org
Martin,
Thanks for the pointer, I manged to get the recipe working with your help.
For anyone else looking at this the issue was resolved with this.
A better fix would be to simply use the gitsm:// fetcher on gst1-hantro-g1, that will fetch the common/ submodule automatically.
Ross